package com.stu_ques.users.pojo;

import java.io.Serializable;
import java.util.Date;

import com.stu_ques.common.util.DateUtil;
/**
 * 	创建一个等级表的Dao
 * 	等级表的属性 	id,名字,起始分数,结束分数,创建时间,结束时间
 * */
public class Level implements Serializable
{
	/*	等级表的ID	*/
	private int id ;
	/*	等级表的名字	*/
	private String Name;
	/*	开始分数	*/
	private int startScore;
	/*	结束分数	*/
	private int endScore;
	/*	创建时间	*/
	private Date creationTime;
	/*	更新时间	*/
	private Date updateTime;
	
	/*	生成等级表的读写器	*/
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getName()
	{
		return Name;
	}
	public void setName(String name)
	{
		Name = name;
	}
	public int getStartScore()
	{
		return startScore;
	}
	public void setStartScore(int startScore)
	{
		this.startScore = startScore;
	}
	public int getEndScore()
	{
		return endScore;
	}
	public void setEndScore(int endScore)
	{
		this.endScore = endScore;
	}
	public Date getCreationTime()
	{
		return creationTime;
	}
	public void setCreationTime(Date creationTime)
	{
		this.creationTime = creationTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	@Override
	public String toString()
	{
		/*	时间工具类	*/
		DateUtil dateUtil = new DateUtil();
		String src = this.getId()+"\t"+this.getName()+"\t"+
					this.getStartScore()+"\t"+this.getEndScore()+"\t"+
					dateUtil.dateTimeString(this.getCreationTime())+"\t"+
					dateUtil.dateTimeString(this.getUpdateTime());
		return src;
	}
}
